package com.briup;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.Collection;
import java.util.Map;

public class NoObjectListen extends AnalysisEventListener<Map<Integer, Object>> {
    @Override
    public void invoke(Map<Integer, Object> data, AnalysisContext analysisContext) {
        System.out.println("读取到的每行数据"+data);
        Collection<Object> values = data.values();
        values.stream().forEach(value-> System.out.println(value.getClass()));
        //value都是string类型  简化了封装，增大了传入数据库的类型转化操作
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
